package com.cooliang.model.po;

import java.util.ArrayList;

import com.cooliang.model.base.api.CLApiBaseModel;

public class CLApiProjectModel extends CLApiBaseModel {
	private String name;

	private ArrayList<CLApiInterfaceModel> list;

	public CLApiProjectModel(){
		
	}
	public CLApiProjectModel(String name) {
		this.name = name;
	}

	public void addInterFaceModel(CLApiInterfaceModel interFaceModel) {
		if (list == null) {
			list = new ArrayList<CLApiInterfaceModel>();
		}
		list.add(interFaceModel);
	}

	public void removeInterFaceModel(CLApiInterfaceModel interFaceModel) {
		if (list != null && list.size() > 0) {
			list.remove(interFaceModel);
		}
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = safeString(name);
	}

	public ArrayList<CLApiInterfaceModel> getList() {
		return list;
	}

	public void setList(ArrayList<CLApiInterfaceModel> list) {
		this.list = list;
	}

}
